<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
    
class Search_globalA extends CI_Controller 
{
    function __construct()
	{
		parent::__construct();
        if((!check_auth()) ? redirect("/login/auth") : site_url("/home"));
        $this->load->library('mypaging');
	    $this->load->model('sGlobal_model');
        //$this->load->helper('date');
        //echo "ANDI"; exit;
	}
    public function edit_sikBawahSave(){
        $arr['pCType']    			=  $_POST['pCType'];
        $arr['pSikId']    			=  $_POST['pSikId'];
        $arr['pSikjId']          = $_POST['pSikIdBawah'];
        $arr['pSikjName']        = $_POST['pSikName'];
        $arr['pSikjDesc']   = $_POST['pSikPekerjaan'];
        $arr['pSikjFloor']      = $_POST['pSikLantai'];
        $arr['pSikjLocation']    = $_POST['pSikLocation'];
        $arr['pSikjAccess']      = $_POST['pSikAccess'];
        $arr['pSikjBarang']  = $_POST['pSikNamaBarang'];
        $arr['pSikjSn']      = $_POST['pSikSerial'];
        
        $pCType    			=  $arr['pCType'];
        $pSikId    			=  $arr['pSikId'];
        $pSikjId          = $arr['pSikjId'];
        $pSikjName        = $arr['pSikjName'];
        $pSikjDesc   = $arr['pSikjDesc'];
        $pSikjFloor     = $arr['pSikjFloor'];
        $pSikjLocation    = $arr['pSikjLocation'];
        $pSikjAccess      = $arr['pSikjAccess'];
        $pSikjBarang  = $arr['pSikjBarang'];
        $pSikjSn      = $arr['pSikjSn'];
        
        //var_dump($arr); exit;
    	
    	//INSERT FM_SIK_JOB
        $sikInsert3=$this->sGlobal_model->sikInsert3($pSikjName,$pSikjLocation,$pSikjFloor,$pSikjSn,$pSikjAccess,$pSikjDesc,$pSikjBarang,$pSikId);	
    }
    public function edit_sikBawahEditSave(){
        $arr['pCType']    			=  $_POST['pCType'];
        $arr['pSikId']    			=  $_POST['pSikId'];
        $arr['pSikjId']    			=  $_POST['pSikjId'];
        $arr['pSikjName']        = $_POST['pSikName'];
        $arr['pSikjDesc']   = $_POST['pSikPekerjaan'];
        $arr['pSikjFloor']      = $_POST['pSikLantai'];
        $arr['pSikjLocation']    = $_POST['pSikLocation'];
        $arr['pSikjAccess']      = $_POST['pSikAccess'];
        $arr['pSikjBarang']  = $_POST['pSikNamaBarang'];
        $arr['pSikjSn']      = $_POST['pSikSerial'];
        
        $pCType    			=  $arr['pCType'];
        $pSikId    			=  $arr['pSikId'];
        $pSikjId          = $arr['pSikjId'];
        $pSikjName        = $arr['pSikjName'];
        $pSikjDesc   = $arr['pSikjDesc'];
        $pSikjFloor     = $arr['pSikjFloor'];
        $pSikjLocation    = $arr['pSikjLocation'];
        $pSikjAccess      = $arr['pSikjAccess'];
        $pSikjBarang  = $arr['pSikjBarang'];
        $pSikjSn      = $arr['pSikjSn'];
        
        //var_dump($arr); exit;
    	
    	//UPDATE FM_SIK_JOB
        $sikUpdate3=$this->sGlobal_model->sikUpdate3($pSikjName,$pSikjLocation,$pSikjFloor,$pSikjSn,$pSikjAccess,$pSikjDesc,$pSikjBarang,$pSikjId);
    		
    }
    public function edit_ovtBawahEditSave(){
        //echo "andi";
        $arr['pCType']    			=  $_POST['pCType'];
        //$arr['pSoId']    			=  $_POST['pSoId'];
        $arr['pSodId']    			=  $_POST['pSodId'];
        $arr['pSodName']        = $_POST['pSodName'];
        $arr['pSodFloor']      = $_POST['pSodLantai'];
        $arr['pSodLocation']    = $_POST['pSodLocation'];
        $arr['pSodVendorId']      = $_POST['pSodVendorId'];
        
        var_dump($arr); exit;
        
        $pCType    			=  $_POST['pCType'];
        //$arr['pSoId']    			=  $_POST['pSoId'];
        $pSodId    			=  $_POST['pSodId'];
        $pSodName       = $_POST['pSodName'];
        $pSodFloor      = $_POST['pSodLantai'];
        $pSodLocation    = $_POST['pSodLocation'];
        $pSodVendorId      = $_POST['pSodVendorId'];
        
        //var_dump($arr); exit;
    	
    	//UPDATE FM_SIK_JOB
        $ovtUpdate9=$this->sGlobal_model->ovtUpdate9($pSodName,$pSodLocation,$pSodFloor$pSodVendorId,$pSodId);
    		
    }
    public function edit_sikBawahDeleteSave(){
        $arr['pCType']    			=  $_POST['pCType'];
        $arr['pSikId']    			=  $_POST['pSikId'];
        $arr['pSikjId']    			=  $_POST['pSikjId'];
        
        $pCType    			=  $arr['pCType'];
        $pSikId    			=  $arr['pSikId'];
        $pSikjId          = $arr['pSikjId'];
        
    	
    	//DELETE FM_SIK_JOB
        $sikDelete1=$this->sGlobal_model->sikDelete1($pSikjId);
    		
    }
}
?>